package com.example.administrator.service;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class MusicPlayer extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.player_music);


    }

    public void startMusic(View view) {
        Intent intent3 = new Intent();
        intent3.setAction("com.studio.android.START_AUTO_SERVICE");
        intent3.addCategory("android.intent.category.DEFAULT");
        startService(intent3);
    }

    public void stopMusic(View view) {
        stopService(new Intent("com.studio.android.START_AUTO_SERVICE"));
        finish();
    }
}
